package org.dromara.hm.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 补充提货记录对象 hm_supplementary_pickup_record
 *
 * @author Hzy
 * @date 2025-07-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hm_supplementary_pickup_record")
public class HmSupplementaryPickupRecord extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 补充提货记录ID
     */
    @TableId(value = "supplementary_pickup_id")
    private Long supplementaryPickupId;

    /**
     * 原始销售订单ID
     */
    private Long originalSaleId;

    /**
     * 原始订单中未提货的产品ID
     */
    private Long originalProductId;

    /**
     * 原始订单中未提货的产品名称 (冗余)
     */
    private String originalProductName;

    /**
     * 原始订单中未提货时剩余的数量
     */
    private Integer originalUnfulfilledQuantity;

    /**
     * 实际补充提货的产品ID
     */
    private Long supplementaryProductId;

    /**
     * 实际补充提货的产品名称 (冗余)
     */
    private String supplementaryProductName;

    /**
     * 实际补充提货的数量
     */
    private BigDecimal supplementaryQuantity;

    /**
     * 补充提货时间
     */
    private Date pickupTime;

    /**
     * 提货店铺ID
     */
    private Long pickupDeptId;

    /**
     * 提货店铺名称 (冗余)
     */
    private String pickupDeptName;

    /**
     * 操作人ID
     */
    private Long operatorId;

    /**
     * 操作人姓名 (冗余)
     */
    private String operatorName;

    /**
     * 补充提货原因 (例如：原产品缺货，客户同意更换)
     */
    private String reason;

    /**
     * 证明材料（图片/文档路径）
     */
    private String proofFiles;

    /**
     * 状态（NORMAL正常，CANCELLED作废）
     */
    private String status;

    /**
     * 删除标志（0存在 1删除）
     */
    @TableLogic
    private Long delFlag;


}
